package com.xrit.sunnyday.dao;

import com.xrit.sunnyday.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface OrderMobileDao {
    Order findByCondition(Order order);

    void add(Order order);

    Map<String, Object> findById4Detail(Integer id);

    int findOrderCountByDate(String today);

    int findVisitsCountByDate(String today);

    int findOrderCountBetweenDate(@Param("monday") String monday,@Param("sunday") String sunday);

    int findVisitsCountAfterDate(String monday);

    List<Map<String, Object>> findHotSetmeal();
}
